package com.kkb.robotcustomerservice.controller;


import com.kkb.robotcustomerservice.util.Question;
import com.kkb.robotcustomerservice.util.RequestData;
import com.kkb.robotcustomerservice.util.ResponseResult;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
public class UpdateQuestionController {

    //标准问句添加接口
    @RequestMapping(value = "/add_one_standard_question",method = RequestMethod.POST)
    public ResponseResult addOneStandardQuestion(@RequestBody RequestData<Question> requestData){
        System.out.println(requestData);
        return ResponseResult.ok("success");

    }

    //同义问句添加接口
    @RequestMapping(value = "/add_synonymic_questions_to_one_standard",method = RequestMethod.POST)
    public ResponseResult addSQToOneStandardQuestion(@RequestBody RequestData<Question> requestData){
        System.out.println(requestData);
        return ResponseResult.ok("success","{}");
    }

    //标准问句删除接口
    @RequestMapping(value = "/delete_one_standard_question",method = RequestMethod.POST)
    public ResponseResult deleteOneStandardQuestion(@RequestBody RequestData<Question> requestData){
        System.out.println(requestData);
        return ResponseResult.ok("success","{}");

    }

    //同义问句删除接口
    @RequestMapping(value = "/delete_synonymic_questions_to_one_standard",method = RequestMethod.POST)
    public ResponseResult deleteSQToOneStandardQuestion(@RequestBody RequestData<Question> requestData){
        System.out.println(requestData);
        return ResponseResult.ok("success","{}");
    }

}
